feat: theming, layouts, dialog confirmation.#5
Merged
knightedcodemonkey merged 6 commits intomainfrom Mar 16, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds theming, layout controls, and a modal confirmation flow to the in-browser playground UI, while also introducing Husky/lint-staged hooks to standardize formatting/linting before commits/pushes.
Changes:
- Introduces semantic CSS variables + light theme support and updates UI styles to use theme tokens.
- Adds app grid layout toggles (stacked / preview-left / preview-right) and persists layout/theme to localStorage.
- Adds a clear-source confirmation dialog (with
window.confirmfallback) and wires it into the “Clear” actions.
Reviewed changes
Copilot reviewed 11 out of 12 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| src/styles.css | Adds theme tokens (dark + light), layout toggle styling, and confirm dialog styling. |
| src/index.html | Adds layout/theme toggle buttons and the clear confirmation <dialog>. |
| src/editor-codemirror.js | Switches CodeMirror theme colors to CSS variables for theming support. |
| src/app.js | Implements layout/theme persistence and clear confirmation dialog behavior. |
| package.json | Adds Husky + lint-staged and configures staged formatting/linting. |
| package-lock.json | Locks new Husky/lint-staged dependency tree. |
| docs/next-steps.md | Updates next-steps list to reflect completed work. |
| docs/article.md | Adds a long-form article describing the project’s concept and stack. |
| README.md | Updates the project tagline to the new “Compiler-as-a-Service” framing. |
| .prettierignore | Excludes node_modules and dist from Prettier runs. |
| .husky/pre-push | Adds pre-push hook to run lint + build:esm. |
| .husky/pre-commit | Adds pre-commit hook to run lint-staged. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.